package com.example.springboot.pojo;

import cn.hutool.core.date.DateTime;

import java.sql.Timestamp;

public class Validation {

    private String email;
    private String code;
    private Timestamp time;


    public Validation() {
    }

    public Validation(String email, String code, Timestamp time) {
        this.email = email;
        this.code = code;
        this.time = time;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return code
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置
     * @param code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取
     * @return time
     */
    public Timestamp getTime() {
        return time;
    }

    /**
     * 设置
     * @param time
     */
    public void setTime(Timestamp time) {
        this.time = time;
    }

    public String toString() {
        return "Validation{email = " + email + ", code = " + code + ", time = " + time + "}";
    }
}
